package com.im.service.group.model.req;

import com.im.common.model.RequestBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("更新群组请求参数")
public class UpdateGroupReq extends RequestBase {

    @NotBlank(message = "群id不能为空")
    @ApiModelProperty(value = "群组id", required = true)
    private String groupId;

    @ApiModelProperty("群组名称")
    private String groupName;

    @ApiModelProperty("是否全员禁言，0 不禁言；1 全员禁言")
    private Integer mute;

    @ApiModelProperty("加入群权限，0 所有人可以加入；1 群成员可以拉人；2 群管理员或群组可以拉人")
    private Integer applyJoinType;

    @ApiModelProperty("群简介")
    private String introduction;

    @ApiModelProperty("群公告")
    private String notification;

    @ApiModelProperty("群头像")
    private String photo;

    @ApiModelProperty("群成员上限")
    private Integer maxMemberCount;

    @ApiModelProperty("额外信息")
    private String extra;

}

